<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/nist_testsuite/include/LinearComplexity.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_linear_complexity_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">LinearComplexity.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">* LinearComplexity.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* Last edited: 21.07.2014</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* Author: David Noack</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;NistTest.h&quot;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;boost\math\special_functions\gamma.hpp&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_linear_complexity.html">   15</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_linear_complexity.html">LinearComplexity</a> : <span class="keyword">public</span> <a class="code" href="class_nist_test.html">NistTest</a></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <a class="code" href="class_linear_complexity.html#a5267fb552a9d09b058e313dd6b279735">LinearComplexity</a>(<span class="keywordtype">bool</span>* bitArray, <span class="keywordtype">int</span> bitArraySize);</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_linear_complexity.html#a15a9b0731461a18723cf5a67f4a220b6">   25</a></span>&#160;        <a class="code" href="class_linear_complexity.html#a15a9b0731461a18723cf5a67f4a220b6">~LinearComplexity</a>(){};</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_linear_complexity.html#ab1464e6ac8d415c91df050ec6b6d70d2">   28</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_linear_complexity.html#ab1464e6ac8d415c91df050ec6b6d70d2">start</a>(){};</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        <span class="keywordtype">double</span> <a class="code" href="class_linear_complexity.html#a8302cb1fd09259331991c0f55265fde9">execute</a>(<span class="keywordtype">int</span> blockSize, <span class="keywordtype">int</span> size);</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <span class="keywordtype">double</span> <a class="code" href="class_linear_complexity.html#a13db52787f658160c52ef67d0b0ee12b">computeLFSR</a>();</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        </div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="class_linear_complexity.html#a4e8a7105e5db8104f1f434e14ccc80f6">   41</a></span>&#160;        <span class="keyword">static</span> <span class="keywordtype">double</span> <a class="code" href="class_linear_complexity.html#a4e8a7105e5db8104f1f434e14ccc80f6">pi</a>[7];</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="class_linear_complexity.html#a0114d25d86a4158f246b6315ef5ff365">   44</a></span>&#160;        <span class="keywordtype">double</span> <a class="code" href="class_linear_complexity.html#a0114d25d86a4158f246b6315ef5ff365">chi_square</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_linear_complexity.html#a06529f0099fae33affb83a8b5d99fb1d">   46</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_linear_complexity.html#a06529f0099fae33affb83a8b5d99fb1d">K</a>;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_linear_complexity.html#a8c26041e34562b0c4eb56ce393854b0c">   48</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_linear_complexity.html#a8c26041e34562b0c4eb56ce393854b0c">numberOfBlocks</a>; </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_linear_complexity.html#acec2717c89e0b4efcbb45b50234e4d17">   50</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_linear_complexity.html#acec2717c89e0b4efcbb45b50234e4d17">blocksize</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keywordtype">short</span>* c;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <span class="keywordtype">short</span>* t;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordtype">short</span>* b;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keywordtype">short</span>* p;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="class_linear_complexity.html#ac907f0926f582bb99d001b545aa83540">   58</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_linear_complexity.html#ac907f0926f582bb99d001b545aa83540">v</a>[7];</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;};</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="ttc" id="class_linear_complexity_html_a0114d25d86a4158f246b6315ef5ff365"><div class="ttname"><a href="class_linear_complexity.html#a0114d25d86a4158f246b6315ef5ff365">LinearComplexity::chi_square</a></div><div class="ttdeci">double chi_square</div><div class="ttdef"><b>Definition:</b> LinearComplexity.h:44</div></div>
<div class="ttc" id="class_linear_complexity_html_a5267fb552a9d09b058e313dd6b279735"><div class="ttname"><a href="class_linear_complexity.html#a5267fb552a9d09b058e313dd6b279735">LinearComplexity::LinearComplexity</a></div><div class="ttdeci">LinearComplexity(bool *bitArray, int bitArraySize)</div><div class="ttdef"><b>Definition:</b> LinearComplexity.cpp:11</div></div>
<div class="ttc" id="class_linear_complexity_html_a8c26041e34562b0c4eb56ce393854b0c"><div class="ttname"><a href="class_linear_complexity.html#a8c26041e34562b0c4eb56ce393854b0c">LinearComplexity::numberOfBlocks</a></div><div class="ttdeci">int numberOfBlocks</div><div class="ttdef"><b>Definition:</b> LinearComplexity.h:48</div></div>
<div class="ttc" id="class_nist_test_html"><div class="ttname"><a href="class_nist_test.html">NistTest</a></div><div class="ttdef"><b>Definition:</b> NistTest.h:11</div></div>
<div class="ttc" id="class_linear_complexity_html_ab1464e6ac8d415c91df050ec6b6d70d2"><div class="ttname"><a href="class_linear_complexity.html#ab1464e6ac8d415c91df050ec6b6d70d2">LinearComplexity::start</a></div><div class="ttdeci">void start()</div><div class="ttdef"><b>Definition:</b> LinearComplexity.h:28</div></div>
<div class="ttc" id="class_linear_complexity_html_a15a9b0731461a18723cf5a67f4a220b6"><div class="ttname"><a href="class_linear_complexity.html#a15a9b0731461a18723cf5a67f4a220b6">LinearComplexity::~LinearComplexity</a></div><div class="ttdeci">~LinearComplexity()</div><div class="ttdef"><b>Definition:</b> LinearComplexity.h:25</div></div>
<div class="ttc" id="class_linear_complexity_html_a13db52787f658160c52ef67d0b0ee12b"><div class="ttname"><a href="class_linear_complexity.html#a13db52787f658160c52ef67d0b0ee12b">LinearComplexity::computeLFSR</a></div><div class="ttdeci">double computeLFSR()</div><div class="ttdef"><b>Definition:</b> LinearComplexity.cpp:37</div></div>
<div class="ttc" id="class_linear_complexity_html_acec2717c89e0b4efcbb45b50234e4d17"><div class="ttname"><a href="class_linear_complexity.html#acec2717c89e0b4efcbb45b50234e4d17">LinearComplexity::blocksize</a></div><div class="ttdeci">int blocksize</div><div class="ttdef"><b>Definition:</b> LinearComplexity.h:50</div></div>
<div class="ttc" id="class_linear_complexity_html_a06529f0099fae33affb83a8b5d99fb1d"><div class="ttname"><a href="class_linear_complexity.html#a06529f0099fae33affb83a8b5d99fb1d">LinearComplexity::K</a></div><div class="ttdeci">int K</div><div class="ttdef"><b>Definition:</b> LinearComplexity.h:46</div></div>
<div class="ttc" id="class_linear_complexity_html_ac907f0926f582bb99d001b545aa83540"><div class="ttname"><a href="class_linear_complexity.html#ac907f0926f582bb99d001b545aa83540">LinearComplexity::v</a></div><div class="ttdeci">int v[7]</div><div class="ttdef"><b>Definition:</b> LinearComplexity.h:58</div></div>
<div class="ttc" id="class_linear_complexity_html_a8302cb1fd09259331991c0f55265fde9"><div class="ttname"><a href="class_linear_complexity.html#a8302cb1fd09259331991c0f55265fde9">LinearComplexity::execute</a></div><div class="ttdeci">double execute(int blockSize, int size)</div><div class="ttdef"><b>Definition:</b> LinearComplexity.cpp:22</div></div>
<div class="ttc" id="class_linear_complexity_html"><div class="ttname"><a href="class_linear_complexity.html">LinearComplexity</a></div><div class="ttdoc">Implementation of the Nist LinearComplexity-test. </div><div class="ttdef"><b>Definition:</b> LinearComplexity.h:15</div></div>
<div class="ttc" id="class_linear_complexity_html_a4e8a7105e5db8104f1f434e14ccc80f6"><div class="ttname"><a href="class_linear_complexity.html#a4e8a7105e5db8104f1f434e14ccc80f6">LinearComplexity::pi</a></div><div class="ttdeci">static double pi[7]</div><div class="ttdef"><b>Definition:</b> LinearComplexity.h:41</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_5bd6e5762e2d12a994937fef8bd8081a.html">nist_testsuite</a></li><li class="navelem"><a class="el" href="dir_9332151be99f7e112eb0a138608eff3e.html">include</a></li><li class="navelem"><b>LinearComplexity.h</b></li>
    <li class="footer">Generated on Sun Aug 31 2014 18:02:14 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
